<?php
namespace App\Model;

/**
 * @Author:: HuangYin
 * @DateTime: 2017-01-12 19:44
 *
 * @Description:
 */
class Admin extends BaseModel
{
    // 店长
    const STORE_MANAGER = 1;

    // 店员
    const STORE_CLERK = 2;

    public $table = 'admin';

    public $visible = ['id', 'uid', 'phone', 'password', 'real_name', 'avatar', 'sex', 'salt', 'role_id', 'store_id',
        'status', 'memo', 'token', 'created_at'];

    protected $hidden = ['password', 'salt', 'token'];
}